<?php
if ($_POST) { 


file_put_contents( 'my_file.xml', stripslashes($_POST['fileContents']) ); 


} else {
echo "this script works from Flash only!";
}

?> 